
public class p1005_125ms {

	public static//
	// -----
	// -----
	class Main {
		public static void main(String[] args) throws Exception {
			java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
			int size = Integer.parseInt(reader.readLine());
			for (int i = 0; i < size;) {
				String[] parts = reader.readLine().split(" ");
				double x = Double.parseDouble(parts[0]), y = Double.parseDouble(parts[1]);
				int z = (int) ((x * x + y * y) * Math.PI / 2 / 50) + 1;
				System.out.println("Property " + (++i) + ": This property will begin eroding in year " + z + ".");
			}
			System.out.println("END OF OUTPUT.");
		}
	}

	// -----
	// -----

	public static void main(String[] args) throws Exception {
		Judge.run();
	}

}
